package com.vanysoft.business.data.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工厂信息表
 * </p>
 *
 * @author YangLei
 * @since 2018-07-06
 */
@TableName("BASE_PLANT")
public class Plant implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 工厂编号
     */
    @Excel(name = "Plant", orderNum = "1")
    @NotBlank(message = "{plant.hint.notnull}")
    @Length(max = 30, message = "{plant.hint.length}")
    private String plantCode;
    /**
     * 英文名称
     */
    @Excel(name = "English Name", orderNum = "2")
    @NotBlank(message = "{plant.hint.notnull}")
    @Length(max = 100, message = "{plant.hint.length}")
    private String englishName;
    /**
     * 中文名称
     */
    @Excel(name = "Chinese Name", orderNum = "3")
    @NotBlank(message = "{plant.hint.notnull}")
    @Length(max = 100, message = "{plant.hint.length}")
    private String chineseName;
    /**
     * 所属集群
     */
    @Excel(name = "Cluster", orderNum = "0")
    @NotBlank(message = "{plant.hint.notnull}")
    private String plantCluster;
    /**
     * 是否启用（1启用 0不启用）
     */
    private String isEnable;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifyTime;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 修改人
     */
    private String modifyUser;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPlantCode() {
        return plantCode;
    }

    public void setPlantCode(String plantCode) {
        this.plantCode = plantCode;
    }

    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }

    public String getChineseName() {
        return chineseName;
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }

    public String getPlantCluster() {
        return plantCluster;
    }

    public void setPlantCluster(String plantCluster) {
        this.plantCluster = plantCluster;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    @Override
    public String toString() {
        return "Plant{" +
                "id=" + id +
                ", plantCode=" + plantCode +
                ", englishName=" + englishName +
                ", chineseName=" + chineseName +
                ", plantCluster=" + plantCluster +
                ", isEnable=" + isEnable +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                ", createUser=" + createUser +
                ", modifyUser=" + modifyUser +
                "}";
    }
}
